<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</h:head>
<body>
<ui:composition>
	<div class="dados">
		<img src="default_img.png" />
		<span>#{usuarioMB.usuario.nome}</span>
		<h:link value="#{msgs['link.alterarDados']}" outcome="AlterarUsuario" />
	</div>
	
	<h:form>
		<ul>
			<li>#{usuarioMB.usuario.tweets.size()} #{msgs['inicio.tweets']}</li>
			<li>#{usuarioMB.usuario.seguidors1.size()} #{msgs['inicio.seguindo']}</li>
			<li>#{usuarioMB.usuario.seguidors2.size()} #{msgs['inicio.seguidores']}</li>
		</ul>
	
		<h:inputTextarea value="#{tweetMB.tweet.mensagem}" >
			
		</h:inputTextarea>
		<h:commandButton value="#{msgs['botao.tweetar']}" action="#{tweetMB.inserir}">
			<f:ajax event="action" execute="@form" render="@all"></f:ajax>
		</h:commandButton>
	</h:form>
</ui:composition>
</body>
</html>